package com.njym.java.security.app.mapper;


import com.njym.java.security.app.entity.UserMessage;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-22 16:44:11
 */

public interface UserMessageMapper extends Mapper<UserMessage> {
     /**
      * 添加消息记录
      * @param userMessage
      * @return
      */
     int insertMessage(UserMessage userMessage);

     /**
      * 查询历史消息
      * @param a
      * @param b
      * @return
      */
     List<UserMessage> queryHistory(@Param("a") String a, @Param("b") String b);
     int countHistory(@Param("a") String a, @Param("b") String b);
}
